<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_order('unpay')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Compras não pagas</h2>
					<ul class="filter">
						<li><form action="/manage/order/unpay.php" method="get">Email：<input type="text" name="uemail" value="${htmlspecialchars($uemail)}" >&nbsp;<input type="submit" value="Filter" class="formbutton"  style="padding:1px 6px;"/><form></li>
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="40">ID</th>
					<th width="440">Oferta</th>
					<th width="180">Usuário</th><th width="40">Quantidade</th><th width="50">Total</th><th width="50">Não Pago</th><th width="50">Pagar</th><th width="50">Operação</th></tr>
					<!--{loop $orders $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td><a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['title']}</a></td>
						<td>{$users[$one['user_id']]['email']}<br/>{$users[$one['user_id']]['username']}</td>
						<td>{$one['quantity']}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['credit'])}</td>
						<td><span class="money">{$currency}</span>${moneyit($one['origin']-$one['credit'])}</td>
                        <td class="op">
                          <!--{if $one['state']=='pay'}-->
                          <a href="/ajax/manage.php?action=orderview&id={$one['id']}" class="ajaxlink">Detalhes</a>
                          <!--{elseif $one['state']=='unpay'}-->
                          <a href="/ajax/manage.php?action=orderpagseguro&id={$one['id']}" class="ajaxlink" ask="Confirmar compra com Pagseguro? ">Confirmar Pagamento</a>
                          <!--{/if}--></td>

					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
